package com.cy.api;

public class IntegerTests {
    public static void main(String[] args) {
        Integer n1=100;//Integer.valueOf(100) 编译时优化
        Integer n2=100;
        Integer n3=200;
        Integer n4=200;//池中没有则 new Integer(200)
        System.out.println(n1==n2);//true，池存储着-128~+127
        System.out.println(n3==n4);//false
    }
}
